package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_id",type = IdType.AUTO)
    private Integer orderId;

    private String orderNo;

    private Integer custId;

    private Integer carId;

    private Long custTel;

    private Long custCertificatesNumber;

    private String custDriverLicense;

    private String orderPickupShop;

    private String orderPickupAddress;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime orderPickupTime;

    private String orderDropoffShop;

    private String orderDropoffAddress;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime orderDropoffTime;

    private Integer orderLease;

    private Double orderFees;

    private Double orderServiceCharge;

    private String couponNo;

    private Double orderCouponMoney;

    private Double orderPrice;

    private Double orderAmount;

    private LocalDateTime orderCreatetime;

    private LocalDateTime orderUpdatetime;

    private Integer orderStatus;

    private Integer version;

    private String other1;

    private String other2;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
    public Integer getCustId() {
        return custId;
    }

    public void setCustId(Integer custId) {
        this.custId = custId;
    }
    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }
    public Long getCustTel() {
        return custTel;
    }

    public void setCustTel(Long custTel) {
        this.custTel = custTel;
    }
    public Long getCustCertificatesNumber() {
        return custCertificatesNumber;
    }

    public void setCustCertificatesNumber(Long custCertificatesNumber) {
        this.custCertificatesNumber = custCertificatesNumber;
    }
    public String getCustDriverLicense() {
        return custDriverLicense;
    }

    public void setCustDriverLicense(String custDriverLicense) {
        this.custDriverLicense = custDriverLicense;
    }
    public String getOrderPickupShop() {
        return orderPickupShop;
    }

    public void setOrderPickupShop(String orderPickupShop) {
        this.orderPickupShop = orderPickupShop;
    }
    public String getOrderPickupAddress() {
        return orderPickupAddress;
    }

    public void setOrderPickupAddress(String orderPickupAddress) {
        this.orderPickupAddress = orderPickupAddress;
    }
    public LocalDateTime getOrderPickupTime() {
        return orderPickupTime;
    }

    public void setOrderPickupTime(LocalDateTime orderPickupTime) {
        this.orderPickupTime = orderPickupTime;
    }
    public String getOrderDropoffShop() {
        return orderDropoffShop;
    }

    public void setOrderDropoffShop(String orderDropoffShop) {
        this.orderDropoffShop = orderDropoffShop;
    }
    public String getOrderDropoffAddress() {
        return orderDropoffAddress;
    }

    public void setOrderDropoffAddress(String orderDropoffAddress) {
        this.orderDropoffAddress = orderDropoffAddress;
    }
    public LocalDateTime getOrderDropoffTime() {
        return orderDropoffTime;
    }

    public void setOrderDropoffTime(LocalDateTime orderDropoffTime) {
        this.orderDropoffTime = orderDropoffTime;
    }
    public Integer getOrderLease() {
        return orderLease;
    }

    public void setOrderLease(Integer orderLease) {
        this.orderLease = orderLease;
    }
    public Double getOrderFees() {
        return orderFees;
    }

    public void setOrderFees(Double orderFees) {
        this.orderFees = orderFees;
    }
    public Double getOrderServiceCharge() {
        return orderServiceCharge;
    }

    public void setOrderServiceCharge(Double orderServiceCharge) {
        this.orderServiceCharge = orderServiceCharge;
    }
    public String getCouponNo() {
        return couponNo;
    }

    public void setCouponNo(String couponNo) {
        this.couponNo = couponNo;
    }
    public Double getOrderCouponMoney() {
        return orderCouponMoney;
    }

    public void setOrderCouponMoney(Double orderCouponMoney) {
        this.orderCouponMoney = orderCouponMoney;
    }
    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }
    public Double getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }
    public LocalDateTime getOrderCreatetime() {
        return orderCreatetime;
    }

    public void setOrderCreatetime(LocalDateTime orderCreatetime) {
        this.orderCreatetime = orderCreatetime;
    }
    public LocalDateTime getOrderUpdatetime() {
        return orderUpdatetime;
    }

    public void setOrderUpdatetime(LocalDateTime orderUpdatetime) {
        this.orderUpdatetime = orderUpdatetime;
    }
    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1;
    }
    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2;
    }

    @Override
    public String toString() {
        return "Orders{" +
            "orderId=" + orderId +
            ", orderNo=" + orderNo +
            ", custId=" + custId +
            ", carId=" + carId +
            ", custTel=" + custTel +
            ", custCertificatesNumber=" + custCertificatesNumber +
            ", custDriverLicense=" + custDriverLicense +
            ", orderPickupShop=" + orderPickupShop +
            ", orderPickupAddress=" + orderPickupAddress +
            ", orderPickupTime=" + orderPickupTime +
            ", orderDropoffShop=" + orderDropoffShop +
            ", orderDropoffAddress=" + orderDropoffAddress +
            ", orderDropoffTime=" + orderDropoffTime +
            ", orderLease=" + orderLease +
            ", orderFees=" + orderFees +
            ", orderServiceCharge=" + orderServiceCharge +
            ", couponNo=" + couponNo +
            ", orderCouponMoney=" + orderCouponMoney +
            ", orderPrice=" + orderPrice +
            ", orderAmount=" + orderAmount +
            ", orderCreatetime=" + orderCreatetime +
            ", orderUpdatetime=" + orderUpdatetime +
            ", orderStatus=" + orderStatus +
            ", version=" + version +
            ", other1=" + other1 +
            ", other2=" + other2 +
        "}";
    }
}
